import Mock from 'mockjs'
import {SUCCESS_CODE} from '../config/config'

let orderList = [
  {
    id: '1',
    order_num: '1001',
    create_time: '2018-3-1',
    status: 0,
    status_text: '未付款',
    product_name: '小规模报税（3个月）'
  },
  {
    id: '1',
    order_num: '1001',
    create_time: '2018-3-1',
    status: 0,
    status_text: '未付款',
    product_name: '小规模报税（3个月）'
  },
  {
    id: '1',
    order_num: '1001',
    create_time: '2018-3-1',
    status: 0,
    status_text: '未付款',
    product_name: '小规模报税（3个月）'
  }, {
    id: '1',
    order_num: '1001',
    create_time: '2018-3-1',
    status: 0,
    status_text: '未付款',
    product_name: '小规模报税（3个月）'
  }, {
    id: '1',
    order_num: '1001',
    create_time: '2018-3-1',
    status: 0,
    status_text: '未付款',
    product_name: '小规模报税（3个月）'
  }
]

Mock.mock('/api/order/getOrderList', 'post', function (data) {
  return {
    code: SUCCESS_CODE,
    msg: 'ok',
    orderList: orderList
  }
})
